//
//  BookDetailsTableViewCell.m
//  shike
//
//  Created by RegentSoft on 2017/4/20.
//  Copyright © 2017年 RegentSoft. All rights reserved.
//

#import "BookDetailsTableViewCell.h"

@implementation BookDetailsTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier]) {
        [self creatView];
    }
    return self;
}
-(void)creatView{    
    _titleLabel =[[UILabel alloc] initWithFrame:CGRectMake(30, 5, 160, 20)];
    _titleLabel.textColor = [UIColor colorWithHexString:@"#999999"];
    _titleLabel.font = [UIFont systemFontOfSize:14.0];
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_titleLabel];
    
    _contentLabel =[[UILabel alloc] initWithFrame:CGRectMake(DeviceWidth-50, 6,32, 16)];
    _contentLabel.layer.borderWidth = 1.0;
    _contentLabel.layer.borderColor = [[UIColor colorWithHexString:@"#C8C8C8"] CGColor];
    _contentLabel.backgroundColor = [UIColor colorWithHexString:@"#EBEBEB"];
    _contentLabel.backgroundColor = [UIColor whiteColor];
    _contentLabel.textColor = [UIColor colorWithHexString:@"#999999"];
    _contentLabel.font = [UIFont systemFontOfSize:9.0];
    _contentLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_contentLabel];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
@end
